import request from '@/utils/request'

// 查询城市路费配置列表
export function listCityFareConfig(query) {
  return request({
    url: '/cityFareConfig/cityFareConfig/list',
    method: 'get',
    params: query
  })
}

// 查询城市路费配置详细
export function getCityFareConfig(id) {
  return request({
    url: '/cityFareConfig/cityFareConfig/' + id,
    method: 'get'
  })
}

// 新增城市路费配置
export function addCityFareConfig(data) {
  return request({
    url: '/cityFareConfig/cityFareConfig',
    method: 'post',
    data: data
  })
}

// 修改城市路费配置
export function updateCityFareConfig(data) {
  return request({
    url: '/cityFareConfig/cityFareConfig',
    method: 'put',
    data: data
  })
}

// 删除城市路费配置
export function delCityFareConfig(id) {
  return request({
    url: '/cityFareConfig/cityFareConfig/' + id,
    method: 'delete'
  })
}



// 全局路费时间配置
export function selectNightTime(data) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig/selectNightTime',
    method: 'post',
	data:data
  })
}

// 全局路费配置提交
export function updateBanch(data) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig/updateBanch',
    method: 'post',
	data:data
  })
}

// 城市查询
export function selectCityFareCity() {
  return request({
    url: '/cityFareConfig/cityFareConfig/selectCityFareCity',
    method: 'get',
  })
}


